<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	>
<a4j:commandButton value="Save" action="#{todoaction.saveSubjectTodo}"></a4j:commandButton>
<a4j:commandButton value="Cancel" immediate="true" action="#{todoaction.cancelSubjectTodo}"></a4j:commandButton>
			
				<fieldset>
				<legend>Todo</legend>
				<s:decorate id="namedecorate"
					template="/layout/edit.xhtml">
					<ui:define name="label">Name:</ui:define>
					<h:inputText value="#{todo.name}" size="100" required="true"
						reRender="namedecorate"></h:inputText>
				</s:decorate> <s:decorate id="leveldecorate" template="/layout/edit.xhtml">
					<ui:define name="label">Level:</ui:define>
					<h:selectOneMenu value="#{todo.level}">
				<s:selectItems value="#{levels}" var="level" label="#{level.label}" noSelectionLabel="Please select" />
				<s:convertEnum />
			</h:selectOneMenu>
				</s:decorate> <s:decorate id="contentdecorate" template="/layout/edit.xhtml">
					<ui:define name="label">Content:</ui:define>
					<h:inputTextarea value="#{todo.content}" cols="120" rows="30"></h:inputTextarea>
				</s:decorate></fieldset>

	
	
</ui:composition>
